package fm.last.api
{
    import fm.last.BaseTC;
    

    public class TagAPITest1 extends BaseTC
    {
        
        
        public function TagAPITest1()
        {
            super();
   
            addTest("testGetTopTags");     
        }
     
        
               
        public function testGetTopTags():void
        {            
            var f:Function = function(xml:XML):void {
                var tagArray:Array = [];
                var n:int = xml.toptags.tag.length();
                n = (n < 10 ? n : 10);
                for (var i:int=0; i < n; i++) {
                    tagArray.push(xml.toptags.tag[i].name);
                }
                trace("tag="+tagArray);
            }
            lfm_service.tag.getTopTags(f, unexpectedError);
        }       
        
        
    }
}